local F=Vector3.new(3,3,3) local y="marshmellow_stage" local o=CFrame.new(0,0,-10) local s="rbxassetid://921977739" local q="rbxassetid://921977754" local r=Vector3.new(.1,.1,.1) local n=Vector3.new(0,.2,0) local B=6 local m=4 local f=Color3.fromRGB(236,139,70) local k=Color3.fromRGB(139,80,55) local v=25 local E=.5 local D=5 local _=3 local u=.02 local C=1 local p="http://www.roblox.com/asset/?id=12517136" local b=4 local j=1 local l="http://www.roblox.com/asset/?id=12544690" local h=1.5 local i=.5 local g="rbxassetid://7196552885" local c=8 local a=1 local d=true local e=4 local w=game:GetService("RunService") local J=game:GetService("Debris") local K=game:GetService("TweenService") local N={} local A=false local I=false local H=false local z=0 local G=owner local L=TweenInfo.new(2,Enum.EasingStyle.Quart,Enum.EasingDirection.Out,0,false,0) local function M(a,_)local b=Instance.new(a) for a,_ in pairs(_)do b[a]=_ end return b end local function x(a)a=a or 1/60 local _=os.clock() while os.clock()-_=.02 and a<.9 then _="+20"elseif a>=.9 then _="+2"end j.ToolTip="Click to eat (".._.."hp)" local a=K:Create(h,L,{C0=CFrame.new()}) local _=K:Create(g,L,{C0=g.C0*CFrame.new(0,-2,0)}) local b=K:Create(f,L,{Transparency=1}) a:Play() _:Play() b:Play() b.Completed:Connect(function()J:AddItem(f,0)end)elseif _==1 then local b=false local _=false local c=j.Parent:FindFirstChild("Head") local a=K:Create(i,L,{Transparency=1}) a:Play() d.Ended:Connect(function()b=true if _ then J:AddItem(j,0) return end end) a.Completed:Connect(function()_=true if b then J:AddItem(j,0) return end end) d:Play() if c then local _=M("Weld",{Name="HWeld",Part0=c,C0=c.CFrame:toObjectSpace(i.CFrame),Parent=c}) J:AddItem(h,0) _.Part1=i local _=K:Create(_,L,{C0=CFrame.new()}) _:Play()end local _,_,_=Color3.toHSV(i.Color) if _<.02 then e.Health-=10 elseif _>=.02 and _<.9 then e.Health+=20 elseif _>=.9 then e.Health+=2 end end j:SetAttribute(y,_+1)end)end end local function a(_)local _=_.Character if _ then local b=_:FindFirstChildWhichIsA("Tool") if b then b.Enabled=false for _,_ in pairs(b:GetDescendants())do if _:IsA("TouchTransmitter")then J:AddItem(_,0)end if _:IsA("BasePart")then _.CanTouch=false end end if b.Name=="Marshmellow Stick"or b.Name=="Coal on a Stick"or b.Name=="Marshmellow"or b.Name=="Coal"and b:FindFirstChild("Marshmellow")then z+=1 N.fire.Size=B+5 coroutine.wrap(function()x(4) z-=1 if z==0 then N.fire.Size=B end end)()end local a=b:FindFirstChild("Handle") if a then local _=a.CFrame a.Anchored=true b.Parent=script a.CFrame=_ local _=K:Create(a,L,{CFrame=N.base.CFrame*CFrame.new(0,-1,0)}) _:Play() _.Completed:Connect(function()J:AddItem(b,0)end)else J:AddItem(b,0)end end end end N:create() t() N.getPrompt.Triggered:Connect(_) N.throwPrompt.Triggered:Connect(a) w.Stepped:Connect(function()if I and H then N.posSelect.Parent=script N.campfireModel.Parent=nil if G.Character then if G.Character:FindFirstChild("HumanoidRootPart")then N.posSelect.CFrame=G.Character.HumanoidRootPart.CFrame*CFrame.new(0,-3,-10)end end elseif not I and H then N.posSelect.Parent=nil N.campfireModel.Parent=nil elseif not I and not H then N.campfireModel.Parent=script N.posSelect.Parent=nil if N.base.CFrame~=N.posSelect.CFrame then N.campfireModel:PivotTo(N.posSelect.CFrame)end if not A then A=true for _,c in pairs(N.heatSpace:GetTouchingParts())do if c:IsA("SpawnLocation")and c.Name=="Marshmellow"and c.Parent:FindFirstChild("Stick")and c.Parent:IsA("Tool")then local _,_,b=Color3.toHSV(c.Color) c.Parent.ToolTip="Click to eat (Darkness Level: "..math.floor((1-b)*100).."%)" local a=math.random(0,100) local _=Color3.fromHSV(v/255,math.min(_+u*C,1),math.max(1-(1-b+u*C),0)) if(b==0 or a<=1)and not c:FindFirstChild("MarshmellowFireEffect")then _=Color3.new(0,0,0) local _=M("Fire",{Name="MarshmellowFireEffect",Heat=3,Size=2,Parent=c}) c.Parent.Name="Coal on a Stick"end c.Color=_ end if c.Parent:FindFirstChildWhichIsA("Humanoid")and c.Parent:IsA("Model")and c.Parent:FindFirstChild("HumanoidRootPart")then if not c.Parent.HumanoidRootPart:FindFirstChild("gotburntlol")then local _,_=pcall(function()local _=M("Fire",{Name="gotburntlol",Heat=9,Size=15,Parent=c.Parent.HumanoidRootPart}) J:AddItem(_,5)end) c.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(20)end end end coroutine.wrap(function()x(C) A=false end)()end end end)